[XEND] Two small fixes/improvements from Glauber de Oliveira Costa.
authorkfraser@localhost.localdomain <kfraser@localhost.localdomain>
Thu, 19 Oct 2006 14:53:12 +0000 (15:53 +0100)
committerkfraser@localhost.localdomain <kfraser@localhost.localdomain>
Thu, 19 Oct 2006 14:53:12 +0000 (15:53 +0100)
Signed-off-by: Keir Fraser <keir@xensource.com>
tools/python/xen/xend/XendDomainInfo.py
tools/python/xen/xend/server/blkif.py

index 42e3a50dd7eaa1fc74a1de20d575ab377beb8f90..748d7fe7f101c1aa93c526c1d19e4f4799fb1a49 100644 (file)
@@ -392,6 +392,8 @@ def parseConfig(config):
             log.warn("Ignoring malformed and deprecated config option "
                      "restart = %s", restart)
 
+    result['start_time'] = get_cfg('start_time', float)
+
     log.debug("parseConfig: result is %s", result)
     return result
 
index 927e062e118d09b71183a51e150c9d9cfb45ffa2..9726b43868a1a63b982238c2298c40af2180449a 100644 (file)
@@ -81,6 +81,9 @@ class BlkifController(DevController):
                          'acm_policy' : policy})
 
         devid = blkif.blkdev_name_to_number(dev)
+        if not devid:
+            raise VmError('Unable to find number for device (%s)' % (dev))
+
         front = { 'virtual-device' : "%i" % devid,
                   'device-type' : dev_type
                 }